/* eslint-disable no-unused-vars */
Component({
  behaviors: [],
  properties: {},
  data: {
    isLogin: false,
  },
  pageLifetimes: {
    show() {
      // if(!getApp().token)
      const isLogin = !!getApp().token
      this.setData({
        isLogin,
      })

      if (!isLogin) wx.utils.skipLogin()
    },
  },
  lifetimes: {
    created() {},
    attached() {},
    moved() {},
    detached() {},
  },
  methods: {},
})
